//
//  PrefixHeader.h
//  Pods
//
//  Created by Payne on 2021/7/26.
//

#ifndef PrefixHeader_h
#define PrefixHeader_h

#define QM_kStatusBarHeight  [UIApplication sharedApplication].statusBarFrame.size.height
#define kStatusBarAndNavHeight (QM_kStatusBarHeight + 44.0)
#define QM_IS_iPHONEX  ((QM_kStatusBarHeight > 20)?YES:NO)

#define QM_kScreenWidth  [[UIScreen mainScreen] bounds].size.width
#define QM_kScreenHeight (QM_IS_iPHONEX ? ([[UIScreen mainScreen] bounds].size.height - 34) : ([[UIScreen mainScreen] bounds].size.height))
#define kScreenAllHeight  [[UIScreen mainScreen] bounds].size.height

#ifndef kScale6
#define kScale6 (UIScreen.mainScreen.bounds.size.width/375.0)
#endif


#define QM_iPhone6sScaleWidth [[UIScreen mainScreen] bounds].size.width/375

#define QMDeVice (([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone)?YES:NO)

#define kInputViewHeight 75

#define QMHEXRGB(hex)   [UIColor colorWithRed:((float)((hex & 0xFF0000) >> 16))/255.0 green:((float)((hex & 0xFF00) >> 8))/255.0 blue:((float)(hex & 0xFF))/255.0 alpha:1.0]


#define QMChatTextMaxWidth (QM_kScreenWidth - 67 * 2 - 30)
#define kSafeArea (QM_IS_iPHONEX ? 34.0 : 0)

#define isDarkStyle ([QMPushManager share].isStyle)

#define QMWeakSelf \
__weak typeof(self) self_weak_ = self;

#define QMStrongSelf \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wshadow\"") \
__strong typeof(self) self = self_weak_;\
_Pragma("clang diagnostic pop")


#import <QMLineSDK/QMLineSDK.h>

//Tools
#import "UIColor+Hex.h"
#import "UIView+Hex.h"
#import "QMLabelText.h"
#import "QMRemind.h"
#import "QMPushManager.h"
#import "QMDateManager.h"
#import "NSAttributedString+QMEmojiExtension.h"
#import "QMTapGestureRecognizer.h"

#import "QMAudioPlayer.h"
#import "QMAudioRecorder.h"
#import "SJVoiceTransform.h"

#import "QMProfileManager.h"
#import "QMActivityView.h"
#import "QMRegexHandle.h"

//Vendors
#import <Masonry/Masonry.h>
#import <SDWebImage/SDWebImage.h>
#import "MLEmojiLabel.h"
#import <MJRefresh/MJRefresh.h>
#import <TZImagePickerController/TZImagePickerController.h>


static NSString *QM_PingFangSC_Med = @"PingFangSC-Medium";
static NSString *QM_PingFangSC_Reg = @"PingFangSC-Regular";
static NSString *QM_PingFangSC_Lig = @"PingFangSC-Light";
static NSString *QM_PingFangTC_Sem = @"PingFangTC-Semibold";



typedef enum : NSUInteger {
    ChatCall_video_Invite = 1, /**主动视频邀请*/
    ChatCall_video_beInvited, /**视频被邀请*/
    ChatCall_voice_Invite, /**主动语音邀请*/
    ChatCall_voice_beInvited, /**视频被邀请*/
} ChatCallType;


#endif /* PrefixHeader_h */
